package edu.ustb.gateway.entity;

/**
 * @author ShiZhe
 * @create 2021-04-22 14:32
 * 定义从指定的总线交换机接收到的json字段
 */
public class InputMessageMq {

    /**
     * 与ask_id一一对应
     */
    private Long responseId;
    /**
     * 回调地址，接收返回结果，指定总线交换机，这个在配置文件中配置
     */
    private String callbackUrl;
    /**
     * 判断结果：200 - 请求成功，404 - 请求失败
     * status_code
     */
    private Integer result;
    /**
     * 返回的内容
     */
    private String content;

    public Long getResponseId() {
        return responseId;
    }

    public void setResponseId(Long responseId) {
        this.responseId = responseId;
    }

    public String getCallbackUrl() {
        return callbackUrl;
    }

    public void setCallbackUrl(String callbackUrl) {
        this.callbackUrl = callbackUrl;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "InputMessageMq{" +
                "responseId=" + responseId +
                ", callbackUrl='" + callbackUrl + '\'' +
                ", result=" + result +
                ", content='" + content + '\'' +
                '}';
    }
}
// 返回json格式
//{
//        "responseId":"-7520283820682004500",
//        "callbackUrl":"gatewayExchange",
//        "result":200,
//        "content":"success"
//}